import request from "@/utils/request";

// 获取消息列表
export function NotificationsListApi(data) {
  return request({
    url: "/system/notification/list",
    method: "get",
    params: data,
  });
}


// 删除
export function notificationDelectApi(data){
  return request({
    url:"/system/notification/" + data,
    method:'delete',
  })
}




// 获取审批提醒列表
export function approvalReminderApi(params, data){
  return request({
    url:'/system/checkHistoryinfo/checkManageList',
    method: "post",
    params,
    data,
  })
}




// 新增回复
// export function replyAddApi(data) {
//     return request({
//         url: "/system/reply",
//         method: "post",
//         data
//     })
// }

// 新增消息
export function notificationAddApi(data) {
  return request({
    url: "/system/notification",
    method: "post",
    data,
  });
}

// 根据消息id查看已读未读
export function viewReadUnreadApi(data) {
  return request({
    url: "/system/detail/readDetail",
    method: "post",
    data,
  });
}

// 查看消息通知详情
export function notificationDetailApi(id) {
  return request({
    url: "/system/notification/" + id,
    method: "get",
  });
}

// 查看消息会议通知详情
export function mettingDetail(id){
  return request({
    url:'/system/meetingdetail/' + id,
    method:'get'
  })
}

// 新增消息评论
export function notificationCommentsAdd(data) {
  return request({
    url: "/system/comment",
    method: "post",
    data,
  });
}
// 查看评论列表
export function commentListApi(id) {
  return request({
    url: "/system/comment/list/" + id,
    method: "get",
  });
}

// 阅读审核信息
export function readCheckApi(id) {
  return request({
    uel: "/system/notification/readCheck/" + id,
    method: "get",
  });
}
